<?php

namespace app\admin\controller;
use app\common\controller\AdminBaseController;
use think\Db;
   
/**
 * 余额银果
 * @author [lx] 
 */
class ScoreSumController extends AdminBaseController
{
	
    protected function _initialize() {
        parent::_initialize();   
    }
    /**
     * 会员余额银果统计
     * @author [lx] 
     */
    public function index( $page = 1){        
        //会员
        $scoresumuser = Db::name("member")->sum('credit2');
        //会员银果
        $this->assign('scoresumuser',$scoresumuser);
        //会员金额
        $moneysumuser = Db::name("member")->sum('credit1');
        $this->assign('moneysumuser',$moneysumuser);
        return $this->fetch();
    }}